package org.lds.message.center.email.enums;


import org.lds.message.center.common.enums.ErrCodeEnum;

public enum EmailErrorEnum implements ErrCodeEnum {
    PLUGIN_CLOSED("EMAIL_PLUGIN_CLOSED", "EMAIL插件已关闭"),
    REQUEST_INVALID("EMAIL_REQUEST_INVALID", "EmailRequest不合法"),
    REQUESTS_INVALID("EMAIL_REQUESTS_INVALID", "EmailRequests不合法"),
    TO_INVALID("TO_INVALID", "to不合法"),
    CC_INVALID("CC_INVALID", "cc不合法"),
    BCC_INVALID("BCC_INVALID", "bcc不合法"),
    SUBJECT_INVALID("SUBJECT_INVALID", "subject不合法"),
    TEXT_INVALID("TEXT_INVALID", "text不合法"),
    ATTACHMENTS_INVALID("ATTACHMENTS_INVALID", "attachments不合法"),
    FILE_NAME_INVALID("FILE_NAME_INVALID", "filename不合法"),
    FILE_ADDRESS_INVALID("FILE_ADDRESS_INVALID", "fileAddress不合法"),
    ;

    private String code;
    private String message;

    EmailErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
